package com.oig.sys.workflow.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.Hidden;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Schema
@Getter
@Setter
@ToString
public class FlowInstanceDto {

    @Schema(description = "流程配置id")
    private Integer flowConfigId;
    @Schema(description = "流程编码")
    private String flowCode;
    @Schema(description = "流程名称")
    private String flowName;
    @Schema(description = "系统编码")
    private String sysCode;
    @Schema(description = "业务编码")
    private String bizType;
    @Schema(description = "业务单号")
    private String bizId;
    @Schema(description = "审批表单json数据")
    private String flowData;

    @Schema(description = "所属租户id")
    private Integer tenantId;
    @Schema(description = "所属租户名称")
    private String tenantName;

    @Hidden
    @Schema(description = "创建人id")
    private Integer createUserId;
    @Hidden
    @Schema(description = "创建人工号")
    private String createUserCode;
    @Hidden
    @Schema(description = "创建人")
    private String createUserName;
    @Hidden
    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

}
